curl --location --request PUT 'http://172.18.8.118:9200/dic_value?pretty' \
--header 'Content-Type: application/json' \
--data-raw '{
    "mappings" : {
        "properties" : {
          "basedataId" : {
            "type" : "long"
          },
          "dicId" : {
            "type" : "long"
          },
          "dicValueId" : {
            "type" : "long"
          },
          "eid" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          },
          "number" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          },
          "value" : {
            "type" : "text",
            "fields" : {
              "ik" : {
                "type" : "text",
                "analyzer" : "ik_max_word"
              },
              "pinyin" : {
                "type" : "text",
                "analyzer" : "pinyin"
              }
            }
          }
        }
      }
    },
    "settings" : {
      "index" : {
        "number_of_shards" : "5",
        "provided_name" : "dic_value",
        "creation_date" : "1587545832700",
        "analysis" : {
          "analyzer" : {
            "i_analyzer" : {
              "filter" : [
                "lowercase"
              ],
              "tokenizer" : "i_pinyin"
            }
          },
          "tokenizer" : {
            "i_pinyin" : {
              "trim_whitespace " : "true",
              "lowercase" : "true",
              "keep_original" : "true",
              "keep_joined_full_pinyin " : "true",
              "remove_duplicated_term" : "true",
              "keep_first_letter" : "true",
              "keep_separate_first_letter" : "false",
              "type" : "pinyin",
              "limit_first_letter_length" : "16",
              "keep_full_pinyin" : "false"
            }
          }
        },
        "number_of_replicas" : "1",
        "uuid" : "xRXd37w2RaWW709x7TE3IA",
        "version" : {
          "created" : "6020499"
        }
    }
}'